In mathematics, a well-defined expression or unambiguous expression is an expression whose definition assigns it a unique interpretation or value. Otherwise, the expression is said to be not well defined, ill defined or ambiguous. A function is well defined if it gives the same result when the representation of the input is changed without changing the value of the input. For instance, if takes real numbers as input, and if does not equal then is not well defined (and thus not a function).Joseph J. Rotman, The Theory of Groups: an Introduction, p. 287 "... a function is "single-valued," or, as we prefer to say ... a function is well defined.", Allyn and Bacon, 1965. The term well-defined can also be used to indicate that a logical expression is unambiguous or uncontradictory.
A function that is not well defined is not the same as a function that is undefined. For example, if , then even though is undefined, this does not mean that the function is not well defined; rather, 0 is not in the domain of .
Then is well defined if . For example, if and , then would be well defined and equal to Modulo operation.
However, if , then would not be well defined because is "ambiguous" for . For example, if and , then would have to be both 0 and 1, which makes it ambiguous. As a result, the latter is not well defined and thus not a function.
While the definition in step 1 is formulated with the freedom of any definition and is certainly effective (without the need to classify it as "well defined"), the assertion in step 2 has to be proven. That is, is a function if and only if , in which case – as a function – is well defined.
On the other hand, if , then for an , we would have that and , which makes the binary relation not functional (as defined in Binary relation#Special types of binary relations) and thus not well defined as a function. Colloquially, the "function" is also called ambiguous at point (although there is per definitionem never an "ambiguous function"), and the original "definition" is pointless.
Despite these subtle logical problems, it is quite common to use the term definition (without apostrophes) for "definitions" of this kind, for three reasons:
& \overline{n}_8 & \mapsto & \overline{n}_4,\end{matrix} where and are the integers modulo m and denotes the congruence class of n mod m.
N.B.: is a reference to the element , and is the argument of .
The function is well defined, because:
As a counter example, the converse definition:
& \overline{n}_4 & \mapsto & \overline{n}_8,\end{matrix} does not lead to a well-defined function, since e.g. equals in , but the first would be mapped by to , while the second would be mapped to , and and are unequal in .
The fact that this is well-defined follows from the fact that we can write any representative of as , where is an integer. Therefore,
similar holds for any representative of , thereby making the same, irrespective of the choice of representative.
Unlike with functions, notational ambiguities can be overcome by means of additional definitions (e.g., rules of precedence, associativity of the operator). For example, in the programming language C, the operator - for subtraction is left-to-right-associative, which means that a-b-c is defined as (a-b)-c, and the operator = for assignment is right-to-left-associative, which means that a=b=c is defined as a=(b=c). In the programming language APL there is only one rule: from right to left – but parentheses first.
|
|